// 对象
type DefineObject<T> = Record<keyof T, any>

// 元素显隐
export enum Eldisplay {
    hide = 'none',
    show = 'block'
}

// 创建元素
export interface CreateElement<T, K> {
    tagName: keyof HTMLElementTagNameMap
    attributes?: DefineObject<T>
    style?: string
    data?: DefineObject<K>
    className?: string
    text?: string
    childNodes?: Array<HTMLElement>
}
